﻿@model IEnumerable<Treinamento2015_01.Models.ManufacturerViewModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink(Treinamento2015_01.Resources.Manufacture.ResourceManufacture.LinkCreateTitle, "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsActive)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreationDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ModificationDate)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsActive)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreationDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModificationDate)
        </td>
        <td>
            @Html.ActionLink(Treinamento2015_01.Resources.General.Resource.Edit, "Edit", new { id=item.Id }) |
            @Html.ActionLink(Treinamento2015_01.Resources.General.Resource.Details, "Details", new { id = item.Id }) |
            @Html.ActionLink(Treinamento2015_01.Resources.General.Resource.Delete, "Delete", new { id = item.Id })
        </td>
    </tr>
}

</table>
